package com.geotmt.billingcenter.modules.cost.service;

import com.geotmt.billingcenter.common.entry.CostBaseHisEntry;
import com.geotmt.billingcenter.common.vo.cost.CostHisVo;
import com.geotmt.billingcenter.common.vo.params.ParamsCost;
import com.geotmt.billingcenter.common.vo.params.ParamsForDel;

import java.util.Date;
import java.util.List;

/**
 * @Description 类描述
 * @Author      yanghanwei
 * @Mail        yanghanwei@geotmt.com
 * @Date        2019/3/20 11:40
 * @Version     v1
 **/
public interface CostBaseHisService {

    /**
     * 成本 add baseHis
     * @param costBaseHis
     * @return
     */
    Integer addBaseHis(CostBaseHisEntry costBaseHis);

    /**
     * 成本 delete baseHis
     * @param obj
     */
    void deleteBaseHis(ParamsForDel obj);

    /**
     * 成本 list baseHis
     * @param obj
     * @return
     */
    List<CostHisVo> listHis(ParamsCost obj);

    /**
     * 更新历史表中有效结束时间
     * @param preDay
     * @param id
     */
    void updateEndEffect(Date preDay, Integer id);
}
